****************************************************** VBWRITE Demo -- Revision A -- July 12, 1992 Author: Jeff Simms -- CIS: 72200,3173 Demonstrates adding MS WRITE "Control" to a VB app. ****************************************************** Original Demo -- July 6, 1992 Notes on Revision: 1) Code added for tighter fit, optionally expanding hscroll, safer exit, deleting system menu. 2) This code doesn't work with a min button added. The Windows session will be lost if the form is minimized. 3) Use the Exit Demo selection to end the demo. The VB session will be lost if ended from the VB menubar. 4) The demo is also a utility. Place WIN31API.TXT (in Write format) in the root of the C drive for it to work. It will search on a highlighted function from the code window. ------------------------------------------------------------------- Below are the Menu ID's for Write. You can add menu items to the demo using them with PostMessage. The SetParent call was discovered by accident and it looks like you can use it to make "MDI Child" windows with any app or with other VB forms. If you have any questions/suggestions feel free to write. FILE MENU 1001 1002 1003 1004 1005 1006 1007 1008 EDIT MENU 1010 1011 1012 1013 1019 1016 1017 1400 1018 1014 1015 FIND MENU 1020 1021 1022 1023 CHARACTER MENU 1040 1041 1042 1043 1044 1045 1046 1047 1048 PARAGRAPH MENU 1080 1081 1082 1083 1084 1085 1086 1087 1088 DOCUMENT MENU 1100 1101 1102 1103 1104 HELP MENU 1200 1201 1202 1203